import 'package:flutter/material.dart'; 
void main() => runApp(MyApp());
 
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: HomeContent(),
      ),
    );
  }
}
class HomeContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
     
    return Wrap(
      spacing: 10,
      runSpacing: 10,
      // alignment:WrapAlignment.spaceAround,
      children: <Widget>[
        MyButton("000"),
        MyButton("111"),
        MyButton("222"),
        MyButton("333"),
        MyButton("444"),
        MyButton("555"),
        MyButton("666"),
        MyButton("777"),
        MyButton("888"),
        MyButton("999")
      ],
    );
  } 
}
 
class MyButton extends StatelessWidget {
  final String text;
  const MyButton(this.text,{Key key}) : super(key:key);
  @override
  Widget build(BuildContext context) {
     
    return RaisedButton(
      child: Text(this.text),
      textColor: Theme.of(context).accentColor,
      onPressed: (){

      },
    );
  } 
}